package com.sitech.portal.server.dao.ibatis;

import java.util.HashMap;

import com.sitech.ibnms.core.BaseIbnmsDao;
import com.sitech.ibnms.core.IPage;
import com.sitech.ibnms.core.PageForm;
import com.sitech.portal.server.dao.IMessageSettingDao;
import com.sitech.portal.server.domain.MessageSetting;

public class MessageSettingDaoImpl extends BaseIbnmsDao implements
		IMessageSettingDao {

	@Override
	public MessageSetting queryMessageSettingByLoginId(String loginId) {
		return (MessageSetting)this.querySingle("queryMessageSettingByLoginId", loginId);
	}

	@Override
	public void saveMessageSetting(MessageSetting bean) {
		
		this.insert("saveMessageSetting", bean);
	}

	@Override
	public void updateMessageSetting(MessageSetting bean) {

		this.update("updateMessageSetting",bean);
	}

	@Override
	public IPage findMsgHisList(HashMap map, PageForm pageForm) {
		// TODO Auto-generated method stub
		return this.findPage("findMsgHisList", map, pageForm);
	}

}
